package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.CountryDao;
import com.oscarmovie.model.Country;

public class CountryServiceImpl implements CountryService{
	private CountryDao countryDao;

	public void setCountryDao(CountryDao countryDao) {
		this.countryDao = countryDao;
	}

	public CountryDao getCountryDao() {
		return countryDao;
	}

	
	public void save(Country country) {
		countryDao.save(country);
	}

	
	public Country load(int id) {
		Country country =  countryDao.load(id);
		return country;
	}

	
	public List<Country> loadAll() {
		return countryDao.loadAll();
	}
}
